package com.Maykk.StuManagerT;

import java.util.ArrayList;

/**
 * @ClassName: Global
 * @Description: TODO 初始化数据
 * @Author: MaykkStar@163.com
 */
public class Global {
    private Global() {
    }

    public static ArrayList<Student> stuList = new ArrayList<>();
    public static int stuID = 1;

    public static ArrayList<Student> initStu() {
        // 初始化学生类，存入学员信息
        stuList.add(new Student(stuID++, "ZhangSan", "1", 18, 100));
        stuList.add(new Student(stuID++, "LiSi", "1", 19, 90.1f));
        stuList.add(new Student(stuID++, "WangWu", "1", 17, 90.2f));
        stuList.add(new Student(stuID++, "ZhaoLiu", "0", 16, 90.3f));
        stuList.add(new Student(stuID++, "SunQi", "0", 20, 90.4f));
        stuList.add(new Student(stuID++, "YangBa", "0", 21, 90.5f));
        return stuList;
    }
}








